/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.teacake.filteringproxy;

/**
 *
 * @author tkleisas
 */
public class HttpResponseFilter {
    HttpResponseFilter()
    {

    }
    public static byte[] filterResponse(byte[] response, String url, String encoding)
    {
        int index = 0;
        byte[] searchstr = null;
        byte[] newstring = null;
        try
        {
            searchstr = "Πίνακες".getBytes("UTF-8");
            newstring = "Ερωτισμός".getBytes("UTF-8");
        }
        catch(Exception e)
        {

        }
        
        byte[] newresponse = Utility.replace(response,searchstr,newstring);

        return newresponse;
    }






}
